UPDATE C1_VARIABLE SET END_DATE = SYSDATE, DATA_STATE_CODE = '0' WHERE
INSTR(','||:variableIds||',', ','||VARIABLE_ID||',') > 0